<template>
  <div>
    <div id="he-plugin-standard"></div>
  </div>
</template>

<script>
export default {
  name: "Weather",
  mounted() {
    window.WIDGET = {
      "CONFIG": {
        "layout": "2",
        "width": 230,
        "height": 280,
        "background": "4",
        "dataColor": "000000",
        "backgroundColor": "FFFFFF",
        "borderRadius": "5",
        "key": "02a2649d96134173ac349a339ee75827",
      },
    };
    let script = document.createElement("script");
    script.type = "text/javascript";
    script.src =
      "https://widget.qweather.net/standard/static/js/he-standard-common.js?v=2.0";
    document.getElementsByTagName("head")[0].appendChild(script);
  },
};
</script>

<style lang="stylus"></style>
